import request from '@/utils/request'

export default{
    //会员登录
    submitLogin(userInfo){
        return request({
            url: `/educenter/member/login`,
            method: 'post',
            data: userInfo
        })
    },
    getUserInfo(token){
        return request({
            url: `/educenter/member/infoByToken/${token}`,
            method: 'get'
        })
    }
    //根据token获取用户信息
    // getLoginInfo(){
    //     return request({
    //         url: ``
    //     })
    // }
}